|
Protege 3.4.8 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.stanford.smi.protege.model.DefaultFrame
public abstract class DefaultFrame
Default implementation of Frame interface. Forwards all method calls to its DefaultKnowledgeBase.
| Constructor Summary | |
|---|---|
protected |
DefaultFrame()
|
| Method Summary | |
|---|---|
void |
addFrameListener(FrameListener listener)
|
boolean |
addOwnFacetValue(Slot slot,
Facet facet,
Object value)
|
void |
addOwnSlotValue(Slot slot,
Object value)
|
boolean |
areValidOwnSlotValues(Slot slot,
Collection c)
|
void |
assertFrameName()
This call ensures that the name slot for the frame has the frame name as its value. |
int |
compareTo(Frame f2)
|
Frame |
copy(KnowledgeBase kb,
Map valueMap,
boolean isDeep)
|
void |
delete()
|
boolean |
equals(Object o)
|
static boolean |
equals(Object o1,
Object o2)
|
protected KnowledgeBase |
getDefaultKnowledgeBase()
|
URI |
getDefiningProjectURI()
Deprecated. |
Object |
getDirectOwnSlotValue(Slot slot)
see Frame for a description of the return type |
List |
getDirectOwnSlotValues(Slot slot)
See Frame for a description of the return type. |
Collection |
getDocumentation()
|
FrameID |
getFrameID()
|
Icon |
getIcon()
|
String |
getInvalidOwnSlotValuesText(Slot slot,
Collection c)
|
String |
getInvalidOwnSlotValueText(Slot slot,
Object o)
|
KnowledgeBase |
getKnowledgeBase()
|
String |
getName()
|
boolean |
getOwnSlotAllowsMultipleValues(Slot slot)
|
Collection |
getOwnSlotAndSubslotValues(Slot slot)
Returns the own slot values for this slot and all of its subslots. |
Collection |
getOwnSlotDefaultValues(Slot slot)
see Framefor a description of the return type |
Collection |
getOwnSlotFacets(Slot slot)
|
Collection |
getOwnSlotFacetValues(Slot slot,
Facet facet)
|
Collection<Slot> |
getOwnSlots()
Gets the collection of own slots for a frame. |
Object |
getOwnSlotValue(Slot slot)
see Frame for a description of the return type |
int |
getOwnSlotValueCount(Slot slot)
|
Collection |
getOwnSlotValues(Slot slot)
see Frame for a description of the return type |
ValueType |
getOwnSlotValueType(Slot slot)
|
Project |
getProject()
|
Collection<Reference> |
getReferences()
|
Collection<Reference> |
getReferences(int maxReferences)
|
int |
hashCode()
|
boolean |
hasOwnSlot(Slot slot)
|
boolean |
isBeingDeleted()
|
boolean |
isDeleted()
|
boolean |
isEditable()
|
boolean |
isIncluded()
|
boolean |
isSystem()
|
boolean |
isValid()
Deprecated. |
boolean |
isValidOwnSlotValue(Slot slot,
Object o)
|
boolean |
isVisible()
|
void |
localize(KnowledgeBase kb)
|
void |
markDeleted(boolean deleted)
|
void |
markDeleting()
|
void |
moveDirectOwnSlotValue(Slot slot,
int fromIndex,
int toIndex)
|
void |
removeFrameListener(FrameListener listener)
|
void |
removeOwnSlotValue(Slot slot,
Object value)
Remove _all_ occurrences of this value. |
Frame |
rename(String name)
This is as close as we come to renaming a frame. |
void |
setDirectOwnSlotValue(Slot slot,
Object value)
Same as #setOwnSlotValue(Slot, Object) |
void |
setDirectOwnSlotValues(Slot slot,
Collection values)
Same as #setOwnSlotValues(Slot, Collection) |
void |
setDocumentation(Collection documentation)
|
void |
setDocumentation(String documentation)
|
void |
setEditable(boolean b)
|
void |
setIncluded(boolean b)
|
void |
setOwnFacetValue(Slot slot,
Facet facet,
Object value)
See Framefor a description of the value type. |
void |
setOwnFacetValues(Slot slot,
Facet facet,
Collection values)
See Framefor a description of the value type. |
void |
setOwnSlotValue(Slot slot,
Object value)
See Framefor a description of the value type. |
void |
setOwnSlotValues(Slot slot,
Collection values)
See Framefor a description of the value type. |
void |
setSystem(boolean b)
|
void |
setVisible(boolean v)
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface edu.stanford.smi.protege.model.Frame |
|---|
deepCopy, getBrowserText, getOwnFacetValue, getOwnFacetValues, shallowCopy |
| Constructor Detail |
|---|
protected DefaultFrame()
| Method Detail |
|---|
public URI getDefiningProjectURI()
public FrameID getFrameID()
getFrameID in interface Framepublic boolean isDeleted()
isDeleted in interface Framepublic void markDeleted(boolean deleted)
markDeleted in interface Framepublic boolean isBeingDeleted()
isBeingDeleted in interface Framepublic void markDeleting()
markDeleting in interface Framepublic boolean isValid()
isValid in interface Framepublic boolean equals(Object o)
equals in class Objectpublic final int hashCode()
hashCode in class Objectpublic void addFrameListener(FrameListener listener)
addFrameListener in interface Frame
public boolean addOwnFacetValue(Slot slot,
Facet facet,
Object value)
addOwnFacetValue in interface Frame
public void addOwnSlotValue(Slot slot,
Object value)
addOwnSlotValue in interface Frame
public boolean areValidOwnSlotValues(Slot slot,
Collection c)
areValidOwnSlotValues in interface Framepublic int compareTo(Frame f2)
compareTo in interface Comparable<Frame>
public static boolean equals(Object o1,
Object o2)
public Frame copy(KnowledgeBase kb,
Map valueMap,
boolean isDeep)
copy in interface Framepublic void delete()
delete in interface Frameprotected KnowledgeBase getDefaultKnowledgeBase()
public Collection getDocumentation()
getDocumentation in interface Frame
public String getInvalidOwnSlotValuesText(Slot slot,
Collection c)
getInvalidOwnSlotValuesText in interface Frame
public String getInvalidOwnSlotValueText(Slot slot,
Object o)
getInvalidOwnSlotValueText in interface Framepublic final KnowledgeBase getKnowledgeBase()
getKnowledgeBase in interface Framepublic void localize(KnowledgeBase kb)
localize in interface Localizablepublic String getName()
getName in interface Framepublic boolean getOwnSlotAllowsMultipleValues(Slot slot)
getOwnSlotAllowsMultipleValues in interface Framepublic Collection getOwnSlotAndSubslotValues(Slot slot)
FrameFrame for a description of the
return type.
getOwnSlotAndSubslotValues in interface Framepublic Collection getOwnSlotDefaultValues(Slot slot)
FrameFramefor a description of the return type
getOwnSlotDefaultValues in interface Framepublic Collection getOwnSlotFacets(Slot slot)
getOwnSlotFacets in interface Frame
public Collection getOwnSlotFacetValues(Slot slot,
Facet facet)
getOwnSlotFacetValues in interface Framepublic Collection<Slot> getOwnSlots()
Frame
getOwnSlots in interface Framepublic Object getDirectOwnSlotValue(Slot slot)
FrameFrame for a description of the return type
getDirectOwnSlotValue in interface Framepublic List getDirectOwnSlotValues(Slot slot)
FrameFrame for a description of the return type.
getDirectOwnSlotValues in interface Framepublic Object getOwnSlotValue(Slot slot)
FrameFrame for a description of the return type
getOwnSlotValue in interface Framepublic int getOwnSlotValueCount(Slot slot)
getOwnSlotValueCount in interface Framepublic Collection getOwnSlotValues(Slot slot)
FrameFrame for a description of the return type
getOwnSlotValues in interface Framepublic ValueType getOwnSlotValueType(Slot slot)
getOwnSlotValueType in interface Framepublic Project getProject()
getProject in interface Framepublic Collection<Reference> getReferences()
getReferences in interface Framepublic Collection<Reference> getReferences(int maxReferences)
getReferences in interface Framepublic boolean hasOwnSlot(Slot slot)
hasOwnSlot in interface Framepublic boolean isEditable()
isEditable in interface Framepublic boolean isIncluded()
isIncluded in interface Framepublic boolean isSystem()
isSystem in interface Frame
public boolean isValidOwnSlotValue(Slot slot,
Object o)
isValidOwnSlotValue in interface Framepublic boolean isVisible()
isVisible in interface Frame
public void moveDirectOwnSlotValue(Slot slot,
int fromIndex,
int toIndex)
moveDirectOwnSlotValue in interface Framepublic void removeFrameListener(FrameListener listener)
removeFrameListener in interface Frame
public void removeOwnSlotValue(Slot slot,
Object value)
Frame
removeOwnSlotValue in interface Framepublic void setDocumentation(String documentation)
setDocumentation in interface Framepublic void setDocumentation(Collection documentation)
setDocumentation in interface Framepublic void setEditable(boolean b)
setEditable in interface Framepublic void setIncluded(boolean b)
setIncluded in interface Frame
public void setOwnFacetValue(Slot slot,
Facet facet,
Object value)
FrameFramefor a description of the value type.
setOwnFacetValue in interface Frame
public void setOwnFacetValues(Slot slot,
Facet facet,
Collection values)
FrameFramefor a description of the value type.
setOwnFacetValues in interface Frame
public void setOwnSlotValue(Slot slot,
Object value)
FrameFramefor a description of the value type.
This method sets the value of an own slot at a frame to a single value. The value passed in cannot be a
Collection. To pass in a collection instead use Frame.setOwnSlotValues(Slot, Collection)(note the final "s").
This method can be called for either cardinality-single slots or cardinality-multiple slots.
setOwnSlotValue in interface Frame
public void setDirectOwnSlotValue(Slot slot,
Object value)
Frame
setDirectOwnSlotValue in interface Frame
public void setDirectOwnSlotValues(Slot slot,
Collection values)
Frame
setDirectOwnSlotValues in interface Frame
public void setOwnSlotValues(Slot slot,
Collection values)
FrameFramefor a description of the value type.
This method sets the value of an own slot at a frame to a collection of values. This method can be called for
either cardinality-single slots or cardinality-multiple slots. For a cardinality single slot the collection
passed in must have no more than one element.
setOwnSlotValues in interface Framepublic void setSystem(boolean b)
public void setVisible(boolean v)
setVisible in interface Framepublic Icon getIcon()
getIcon in interface Framepublic Frame rename(String name)
Frame
rename in interface Framepublic void assertFrameName()
Frame
assertFrameName in interface Frame
|
Protege 3.4.8 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||